﻿using System;
using System.Linq;
using System.Text;
using T.FAS.Runtime.DataAccess.Common;

namespace T.FAS.Runtime.DataAccess.Engine
{
    public class ValidateConst
    {
        public static string NullErrorTemp => $"{T.ServiceComponent.I18N.Service.TermService.Current.GetText("T_FAS_fasr_DAC_686470241", "字段:{0},类型:{1} 不能输入空值" + ExceptionManage.LineFeedSymbol)}";
        public static string DataTypeErrorTemp => $"{T.ServiceComponent.I18N.Service.TermService.Current.GetText("T_FAS_fasr_DAC_996036273", "字段:{0},输入值:{1},不能转换为{2}类型" + ExceptionManage.LineFeedSymbol)}";
        public static string LengthErrorTemp => $"{T.ServiceComponent.I18N.Service.TermService.Current.GetText("T_FAS_fasr_DAC_859527860", "字段:{0},类型:{1},输入值:{2},长度:{3},大于最大长度{4}" + ExceptionManage.LineFeedSymbol)}";
        public static string PresicionErrorTemp => $"{T.ServiceComponent.I18N.Service.TermService.Current.GetText("T_FAS_fasr_DAC_1999319028", "字段:{0},类型:{1},输入值:{2},精度:{3},大于最大精度{4}" + ExceptionManage.LineFeedSymbol)}";
        public static string ValidateRuleErrorTemp => $"{T.ServiceComponent.I18N.Service.TermService.Current.GetText("T_FAS_fasr_DAC_1028351958", "字段:{0},类型:{1},输入值:{2},错误信息:{3}" + ExceptionManage.LineFeedSymbol)}";
        public static string LowerBoundValidateErrorTemp => $"{T.ServiceComponent.I18N.Service.TermService.Current.GetText("T_FAS_fasr_DAC_1149279895", "字段:{0},类型:{1},输入值:{2},小于下界值:{3}" + ExceptionManage.LineFeedSymbol)}";
        public static string UpperBoundValidateErrorTemp => $"{T.ServiceComponent.I18N.Service.TermService.Current.GetText("T_FAS_fasr_DAC_1927788636", "字段:{0},类型:{1},输入值:{2},大于上界值:{3}" + ExceptionManage.LineFeedSymbol)}";
    }
}